/*Color brand*/
:root {
    --camel: #f8eee6;
    --lightBlue: #b9d7f2;
    --pink: #f6b6b8;
    --purple: #6B2138;
    --orange: #e95226;
    --yellow: #d0c460;
    --brown: #4d4342;
}

/*Polices d'écriture*/
@font-face {
    font-family: 'poppins';
    src: url('../fonts/Poppins-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}
@font-face {
    font-family: 'lora';
    src: url('../fonts/Lora-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

.premiereSection {
    margin-top: 7vw;
}

.premiereSection h1.titre1 {
    font-family: poppins, sans-serif;
    font-size: 3vw;
    letter-spacing: 1px;
    font-weight: bold;
    margin: auto;
    display: flex;
    justify-content: center;
    color: var(--brown);
    max-width: 30vw;
    text-align: center;
}

.premiereSection h2.date {
    font-family: poppins, sans-serif;
    font-style: italic;
    font-size: 1.2vw;
    font-weight: 500;
    margin: auto;
    display: flex;
    justify-content: center;
    margin-top: 3vw;
    color: var(--brown)
}

.souris {
    display: flex;
    justify-content: center;
    margin: 5vw 0;
}

.mouseLtraf {
    width: 30px;
    height: 50px;
    border: 2px solid var(--brown);
    border-radius: 25px;
    position: relative;
    margin-left: auto;
    margin-right: auto;
}

.scrollerMouseLtraf {
    width: 6px;
    height: 10px;
    background-color: var(--brown);
    border-radius: 3px;
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll 2s infinite;
}

@keyframes scroll {
    0% {
        top: 10px;
    }

    50% {
        top: 15px;
    }

    100% {
        top: 10px;
    }
}


.titreParagraphe {
    font-family: 'poppins', sans-serif;
    font-size: 30px;
    color: var(--purple);
    text-align: center;
    margin-top: 5vw;
}

.paragraphe {
    font-family: 'poppins', sans-serif;
    font-size: 20px;
    color: var(--brown);
    text-align: center;
    margin: 0 15%;
}

.listValeurs {
    text-align: center;
    margin: 5vw;
}

.size {
    display: list-item;
    margin: 15px;
    font-size: 1.7vw;
    font-family: 'poppins', sans-serif;
    color: var(--brown);
    list-style: none;
}

.headPageHistoire{
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    margin-top: 10vw;
}

.trombi {
    display: flex;
    justify-content: space-evenly;
    flex-wrap: wrap;
    width: 30%;
    gap: 2vw;
}

.insta{
    width: 10vw;
    height: 14vw;
    box-shadow:
        0 1px 1px rgba(0, 0, 0, 0.12),
        0 2px 2px rgba(0, 0, 0, 0.12),
        0 4px 4px rgba(0, 0, 0, 0.12),
        0 8px 8px rgba(0, 0, 0, 0.12);
    transform: rotate(-2deg);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    align-items: center;
    font-family: lora, sans-serif;
    border: 2px solid white;
}

.insta:hover {
  transform: rotate(0deg) scale(1.05);
}

.insta img{
    width: 8vw;
    height: 8vw;
    object-fit: cover;
}

.insta h3{
    font-size: 1.2vw;
    text-decoration: overline;
}

.instaYellow{
    background-color: var(--yellow);
    
    color: var(--brown);
}

.instaYellow:hover {
    box-shadow:
        0 4px 4px #d0c46042,
        0 8px 8px #d0c46042,
        0 16px 16px #d0c46042,
        0 32px 32px #d0c46042;
    transform: rotate(0deg) scale(1.05);
}

.instaPurple{
    background-color: var(--purple);
    color: var(--camel);
}

.instaPurple:hover {
    box-shadow:
        0 4px 4px #f6b6b842,
        0 8px 8px #f6b6b842,
        0 16px 16px #f6b6b842,
        0 32px 32px #f6b6b842;
    transform: rotate(0deg) scale(1.05);
}

.instaPink{
    background-color: var(--pink);
    color: var(--brown);
}

.instaPink:hover {
    box-shadow:
        0 4px 4px #6B213842,
        0 8px 8px #6B213842,
        0 16px 16px #6B213842,
        0 32px 32px #6B213842;
    transform: rotate(0deg) scale(1.05);
}

.role{
    font-size: 1vw;
    text-align: center;
}


.valeurs {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    margin-bottom: 5vw;
}


.imageContainer {
    position: relative;
    display: inline-block;
    width: 30vw;
    height: 20vw;
    margin-right: 5vw;
    transition: 0.3s ease;
}

.backgroundImagesValeurs {
    display: block;
    width: 35.5vw;
    height: 23.2vw;
}

.imagesConvivialite {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-38.5%, -41.6%);
    width: 80%;
    height: 85%;
    object-position: center;
    border: 5px solid white;
    
}

.imageContainer:hover {
    transform: scale(1.05);
    
}

.imagesTraditionnel {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-38.5%, -41.6%);
    width: 80%;
    height: 85%;
    object-position: center;
    border: 5px solid white;
}

.imagesTraditionnel:hover .backgroundImagesValeurs:hover {
    box-shadow:
        0 4px 4px rgba(0, 0, 0, 0.25),
        0 8px 8px rgba(0, 0, 0, 0.25),
        0 16px 16px rgba(0, 0, 0, 0.25),
        0 32px 32px rgba(0, 0, 0, 0.25);
    transform: rotate(0deg) scale(1.05);
}



/* Media Queries pour le responsive */

/* Mobile (téléphone) - Détection basée sur le ratio d'aspect et l'orientation */
@media screen and ((orientation: portrait) and (max-aspect-ratio: 2/3)),
       screen and ((max-width: 768px) and (hover: none) and (pointer: coarse)) {
    /* Section headPage */
    .headPageHistoire {
        flex-direction: column;
        gap: 8vw;
        padding: 8vw 0;
    }

    .trombi {
        width: 80%;
        gap: 8vw;
        display: flex;
    }

    .insta, .insta2 {
        width: 30vw;
        height: 40vw;
    }

    .insta img, .insta2 img {
        width: 20vw;
        height: 20vw;
    }

    .insta h3, .insta2 h3 {
        font-size: 3vw;
        margin-top: 1vw;
    }

    .nom, .role {
        font-size: 3vw;
    }

    /* Première section */
    .premiereSection {
        margin-top: 0;
        padding: 0 5vw;
    }

    .premiereSection h1.titre1 {
        font-size: 8vw;
        text-align: center;
        max-width: none;
    }

    .premiereSection h2.date {
        font-size: 4.5vw;
        margin-top: 4vw;
        text-align: center;
    }

    /* Contenu */
    .titreParagraphe {
        font-size: 6vw;
        margin: 8vw 5vw 4vw 5vw;
    }

    .paragraphe {
        font-size: 4.5vw;
        margin: 0 8%;
        line-height: 1.6;
    }

    .list span {
        font-size: 4.5vw;
        margin: 3vw;
    }
}

/* Tablette - Écrans moyens en portrait ou paysage tactile */
@media screen and ((orientation: portrait) and (min-aspect-ratio: 2/3) and (max-width: 1024px)),
       screen and ((orientation: landscape) and (max-width: 1366px) and (hover: none)),
       screen and ((min-width: 769px) and (max-width: 1024px) and (orientation: portrait)) {
    /* Section headPage */
    .headPageHistoire {
        gap: 5vw;
        padding: 5vw 0;
    }

    .titre1{
        font-size: 4vw;
        text-align: center;
        max-width: none;
    }

    .date{
        text-align: center;
    }

    .trombi {
        width: 80%;
        gap: 8vw;
        display: flex;
    }

    .insta, .insta2 {
        width: 15vw;
        height: 25vw;
    }

    .insta img, .insta2 img {
        width: 10vw;
        height: 10vw;
    }

    .insta h3, .insta2 h3 {
        font-size: 2vw;
        margin-top: 1vw;
    }

    .nom, .role {
        font-size: 2vw;
    }

    /* Première section */
    .premiereSection h1.titre1 {
        font-size: 4vw;
    }

    .premiereSection h2.date {
        font-size: 2vw;
    }

    /* Contenu */
    .titreParagraphe {
        font-size: 35px;
    }

    .paragraphe {
        font-size: 22px;
        margin: 0 12%;
    }

    .list span {
        font-size: 22px;
    }
}